home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 15 / BBS in a box XV-2.iso / Files II / Multimedia / Q-Z / VCR+(app+src).sit / Sources / f1.c < prev    next >
MacBinary  |  1993-03-17  |  1.0 KB  |  [TEXT/KAHL]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Compact Compressed (Unix) (archive/compact) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
10% dexvert Jesper Olsen Module (music/jesperOlsen) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, Wed Mar 17 22:58:30 1993, modified Wed Mar 17 22:58:30 1993, creator Think C, type ASCII, 447 bytes "f1.c" , at 0x23f 348 bytes resource default (weak)
99% file data default
49% TrID Macintosh plain text (MacBinary) default
33% TrID TTComp archive compressed (bin-1K) default (weak)
16% TrID MacBinary 2 default (weak)
0% TrID Sybase iAnywhere database files default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[KAHL]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 04 66 31 2e 63 00 00 | 00 00 00 00 00 00 00 00 |..f1.c..|........|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4b 41 48 | 4c 00 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 01 bf 00 | 00 01 5c a7 cd a3 e6 a7 |........|..\.....|
|00000060| cd a3 e6 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 09 33 00 00 |........|.....3..|
|00000080| 23 69 6e 63 6c 75 64 65 | 20 22 56 43 52 70 6c 75 |#include| "VCRplu|
|00000090| 73 2e 68 22 0d 0d 65 78 | 74 65 72 6e 09 6c 6f 6e |s.h"..ex|tern.lon|
|000000a0| 67 09 09 43 4f 44 45 5f | 56 41 4c 55 45 3b 0d 0d |g..CODE_|VALUE;..|
|000000b0| 2f 2a 20 66 69 72 73 74 | 20 66 75 6e 63 74 69 6f |/* first| functio|
|000000c0| 6e 20 2a 2f 0d 6c 6f 6e | 67 20 09 66 31 28 6c 6f |n */.lon|g .f1(lo|
|000000d0| 6e 67 20 69 6e 76 61 6c | 29 0d 7b 0d 09 6c 6f 6e |ng inval|).{..lon|
|000000e0| 67 20 09 6e 64 69 67 69 | 74 73 2c 20 68 61 73 68 |g .ndigi|ts, hash|
|000000f0| 76 61 6c 20 3b 0d 09 6c | 6f 6e 67 20 09 70 77 72 |val ;..l|ong .pwr|
|00000100| 20 3b 0d 0d 0d 09 6e 64 | 69 67 69 74 73 20 3d 20 | ;....nd|igits = |
|00000110| 30 3b 0d 09 70 77 72 20 | 3d 20 31 3b 0d 09 77 68 |0;..pwr |= 1;..wh|
|00000120| 69 6c 65 28 69 6e 76 61 | 6c 20 3e 3d 20 70 77 72 |ile(inva|l >= pwr|
|00000130| 29 0d 09 7b 0d 09 09 6e | 64 69 67 69 74 73 2b 2b |)..{...n|digits++|
|00000140| 3b 0d 09 09 70 77 72 20 | 2a 3d 20 31 30 3b 0d 09 |;...pwr |*= 10;..|
|00000150| 7d 20 3b 0d 09 0d 09 69 | 66 28 6e 64 69 67 69 74 |} ;....i|f(ndigit|
|00000160| 73 20 3e 20 38 29 0d 09 | 09 53 65 74 44 54 65 78 |s > 8)..|.SetDTex|
|00000170| 74 28 31 39 2c 20 22 5c | 70 45 72 72 6f 72 3a 20 |t(19, "\|pError: |
|00000180| 6e 75 6d 62 65 72 20 77 | 69 6c 6c 20 68 61 76 65 |number w|ill have|
|00000190| 20 6d 6f 72 65 20 74 68 | 61 6e 20 38 20 64 69 67 | more th|an 8 dig|
|000001a0| 69 74 73 21 22 29 3b 0d | 09 0d 09 70 77 72 20 3d |its!");.|...pwr =|
|000001b0| 20 70 77 72 20 2f 20 31 | 30 20 3b 0d 0d 09 68 61 | pwr / 1|0 ;...ha|
|000001c0| 73 68 76 61 6c 20 3d 20 | 69 6e 76 61 6c 3b 0d 61 |shval = |inval;.a|
|000001d0| 67 61 69 6e 3a 09 68 61 | 73 68 76 61 6c 20 3d 20 |gain:.ha|shval = |
|000001e0| 6d 69 78 75 70 28 68 61 | 73 68 76 61 6c 2c 20 43 |mixup(ha|shval, C|
|000001f0| 4f 44 45 5f 56 41 4c 55 | 45 29 20 25 20 28 70 77 |ODE_VALU|E) % (pw|
|00000200| 72 20 2a 20 31 30 29 20 | 3b 0d 09 69 66 28 68 61 |r * 10) |;..if(ha|
|00000210| 73 68 76 61 6c 20 3c 20 | 70 77 72 29 20 67 6f 74 |shval < |pwr) got|
|00000220| 6f 20 61 67 61 69 6e 20 | 3b 0d 0d 09 72 65 74 75 |o again |;...retu|
|00000230| 72 6e 28 68 61 73 68 76 | 61 6c 29 3b 0d 7d 0d 00 |rn(hashv|al);.}..|
|00000240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000260| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000270| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000280| 00 00 01 00 00 00 01 16 | 00 00 00 16 00 00 00 46 |........|.......F|
|00000290| 00 00 00 00 00 00 00 01 | 00 ff ff ff ff ff ff ff |........|........|
|000002a0| ff f8 3f ff ff fc 1f ff | ff e6 00 00 0f 83 00 00 |..?.....|........|
|000002b0| 04 66 31 2e 63 81 02 00 | 00 00 50 61 72 74 53 49 |.f1.c...|..PartSI|
|000002c0| 54 78 00 00 00 00 00 00 | 00 00 00 01 46 4d 00 00 |Tx......|....FM..|
|000002d0| 00 00 50 61 72 74 53 49 | 54 78 00 00 00 00 00 00 |..PartSI|Tx......|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 a9 7e a4 23 00 00 | 00 00 00 00 01 5c 6c d9 |...~.#..|.....\l.|
|00000300| b6 60 6c d9 ba 63 ec d9 | 9c 66 6c d9 ae 66 6c db |.`l..c..|.fl..fl.|
|00000310| b6 f3 f7 ed ec 00 00 00 | 00 ff ff ff ff ff ff ff |........|........|
|00000320| ff ff ff ff ff ff ff ff | ff ff ff ff ff ff ff ff |........|........|
|00000330| ff ff ff ff ff ff ff ff | ff ff ff ff ff ff ff ff |........|........|
|00000340| ff ff ff ff ff ff ff ff | ff 7f ff ff fc ff ff ff |........|........|
|00000350| fe ff ff ff fe ff ff ff | fe ff ff ff fe ff ff ff |........|........|
|00000360| fe ff ff ff fe 7f ff ff | fc 00 01 e0 00 00 01 fc |........|........|
|00000370| 00 00 01 fc 00 ff ff ff | ff ff ff ff ff ff ff ff |........|........|
|00000380| 00 00 00 04 00 06 00 04 | 00 00 00 0a 00 09 06 47 |........|.......G|
|00000390| 65 6e 65 76 61 50 00 00 | 01 00 00 00 01 16 00 00 |enevaP..|........|
|000003a0| 00 16 00 00 00 46 01 17 | 16 bc 08 74 00 00 00 1c |.....F..|...t....|
|000003b0| 00 46 00 01 45 54 41 42 | 00 00 00 12 45 46 4e 54 |.F..ETAB|....EFNT|
|000003c0| 00 00 00 1e 03 ec ff ff | 00 00 00 00 01 17 16 04 |........|........|
|000003d0| 03 eb ff ff 00 00 00 08 | 01 17 16 54 00 00 00 00 |........|...T....|
|000003e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+